package cn.concurrence.dto;

import lombok.Data;

/**
 * @author summit
 * @since 2022/4/21 10:47
 */
@Data
public class UserDTO implements Cloneable {

	private Integer id;

	private String name;

	@Override
	public UserDTO clone() {
		try {
			UserDTO clone = (UserDTO) super.clone();
			// TODO: copy mutable state here, so the clone can't change the internals of the original
			return clone;
		} catch (CloneNotSupportedException e) {
			throw new AssertionError();
		}
	}
}
